package com.king.hrmsdev.mapper;

import com.king.hrmsdev.entity.Aleave;
import com.king.hrmsdev.entity.Echeck;
import com.king.hrmsdev.pojo.Valeaveinfo;
import com.king.hrmsdev.pojo.Vecheckinfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Auther:SnakeKing
 * @Date: 2019-09-12
 * @Description: com.king.hrmsdev.mapper
 * @version:1.0
 */
@Mapper
public interface AttendanceMapper {

    //请假管理
    List<Valeaveinfo> Findallaleave();//查询所有请假条

    int Approvalaleave(int aleave_id);//同意请假条

    int Refusealeave(int aleave_id);//拒绝请假条-

    int Insertaleave(Aleave aleave);//添加假条-

    List<Valeaveinfo> AleaveFuzzyreward(Map map);//请假条模糊查询


    //考勤状况

    List<Vecheckinfo> Findallecheck();//查询所有考勤状况

    Vecheckinfo FindByecheck_id(int echeck_id);//通过echeck_id查询信息

    int Insertecheck(Echeck echeck);//添加考勤记录

    int Updateecheck(Echeck echeck);//通过echeck_id修改考勤记录//可能有bug

    int Deleteecheck(int echeck_id);//通过echeck_id删除考勤记录

    List<Vecheckinfo> EcheckFuzzyreward(Map map);//考勤信息模糊查询


}
